class PatientData < ActiveRecord::Base
  has_many :order_examinations


  def first_and_last_name
    "#{self.first_name} #{self.laste_name}"
  end

    
  
  # --- Validation --- #
  validates_presence_of :first_name
  validates_presence_of :laste_name
  validates_presence_of :telpehone_number
  validates_presence_of :pesel
  
end
